@echo off

if ""%INIT_ENV_RUNNED%"" == ""TRUE"" (
	echo "The environment was initialized."
	goto end
)

SET INIT_ENV_RUNNED=TRUE

SET TOOLS_HOME=%CD%
SET PROJECT_DIR=%TOOLS_HOME%\..
SET PROJECT_HOME=%PROJECT_DIR%\trunk

SET M2_HOME=%TOOLS_HOME%\maven
SET TOMCAT_HOME=%TOOLS_HOME%\tomcat
SET CATALINA_HOME=%TOOLS_HOME%\tomcat

SET PATH=%TOOLS_HOME%;%M2_HOME%\bin;%PATH%

DOSKEY mci = mvn clean install
DOSKEY mcio = mvn clean install -o
DOSKEY mcis = mvn clean install -DskipTests
DOSKEY mciso = mvn clean install -DskipTests -o
DOSKEY me = mvn eclipse:clean eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true -Dwtpversion=2.0
DOSKEY mc = mvn clean

DOSKEY tools = cd %TOOLS_HOME%
DOSKEY proj = @cd %PROJECT_HOME%


call mklink.bat

:end